import { SceneInfo } from "../framework/scene/SceneInfo";
import { BattleView } from "./ui/views/BattleView";

//==================================UI_Start==============================
export enum ViewDefine {
    HomeView = "HomeView", // 主菜单
    GameInfoView = "GameInfoView",//游戏信息
    Loading = "Loading",//加载界面
    BattleView = "BattleView"//战斗界面
}
export enum ViewLayerDefine {
    Main = "MainLayer", // 主界面层
    Pop = "PopLayer",//弹出窗口层
    Tips = "TipsLayer",//飘字提示层
    Marquee = "MarqueeLayer",//跑马灯层
    Top = "TopLayer"//顶层
}

//层级
//1.main 主层，一般为场景的主菜单，比如主菜单界面，战斗场景主界面
//2.pop 弹出层，一般为点击主层UI上的控件弹出的功能界面，比如点击主界面的副本按钮，弹出的副本功能界面
//3.tip层，一般是飘字提示ui显示
//4.top层，一般是最上层的固定信息展示层，比如客户端的版本，用户uid常驻显示等
//资源路基格式：分包/路径 或者是  分包:路径
export const ViewInfo = {
    [ViewDefine.HomeView]: {
        prefabPath: "prefab/ui/HomeView", // 预制件路径
        layer: ViewLayerDefine.Main, // 所属层级
        script: "HomeView", // 脚本名称
        package:"",//所属的分包
        single:true
    },
    [ViewDefine.GameInfoView]: {
        prefabPath: "prefab/ui/GameInfoView",
        layer: ViewLayerDefine.Top,
        script: "GameInfoView",
        package:"",
        single:true
    },
    [ViewDefine.BattleView]: {
        prefabPath: "prefab/ui/BattleView",
        layer: ViewLayerDefine.Main,
        script: "BattleView",
        package:"",
        single:true
    },
};

//==================================UI_End==============================

//==================================Scene_Start==============================

export enum SceneDefine {
    Loading = "Loading", // 加载场景
    Main = "Main", // 主场景
    Battle = "Battle", // 战斗场景
}


export const SceneInfos:{[key:string]:SceneInfo} = {
    [SceneDefine.Main]:{
        name:SceneDefine.Main,
        isMainScene:true
    },
    [SceneDefine.Loading]:{
        name:SceneDefine.Loading,
        isMainScene:true
    },
    [SceneDefine.Battle]:{
        name:SceneDefine.Battle,
        isMainScene:true
    }
}
//==================================Scene_End==============================